package com.CloudDream;

import org.bukkit.inventory.Inventory;

import java.util.List;

public class ItemUtil {

    public static boolean isItem(Inventory inv, List<Integer> number, int Slot, String m1, List<String> m2) {
        for (int num : number) {
            for (String name : m2) {
                if (inv.getItem(num).getItemMeta().getDisplayName().equals(m1) && inv.getItem(Slot).getItemMeta().getDisplayName().equals(name)) {
                    return true;
                }
            }
        }
        return false;
    }
}

